London| 26-ITP-May | Mandip Sanger | Sprint 3 | Alarm Clock - #1435
London| 26-ITP-May | Mandip Sanger | Sprint 3 | Alarm Clock#1435mandipsanger wants to merge 9 commits into
Conversation
This comment has been minimized.
This comment has been minimized.
cjyuan
left a comment
There was a problem hiding this comment.
-
You missed updating
index.htmlaccording to an instruction inreadme.md. -
Currently when starting a new countdown, the application does not always return to a clean initial state, which can lead to inconsistent behaviour between runs.
Note: a user may not click the "Stop Alarm" button first before starting a new count down.
| <label for="alarmSet">Set time to:</label> | ||
| <input id="alarmSet" type="number" /> | ||
| <label for="alarmSet">Set time in seconds:</label> | ||
| <input id="alarmSet" type="number" min="1" step="1" placeholder="Enter seconds" /> |
There was a problem hiding this comment.
Note: Without a form, the browser won't check the input against the constraints min="1" step="1".
Change is optional.
cjyuan
left a comment
There was a problem hiding this comment.
I assume this PR is ready to be re-reviewed.
Changes look good.
| if (!Number.isInteger(numberValue)) { | ||
| alert("only enter an integer value."); | ||
| return; // exit a function if not an integer | ||
| alert("Only enter an integer value."); | ||
| return; | ||
| } | ||
|
|
||
| //step 4 validate if it is greater than 0 | ||
| // Step 4: validate if it is greater than 0 | ||
| if (numberValue <= 0) { | ||
| alert("only enter a number which is bigger than 0"); | ||
| return; //Exit a funciton if not greater than 0 | ||
| alert("Only enter a number which is bigger than 0."); | ||
| return; | ||
| } |
There was a problem hiding this comment.
Notes:
-
Could probably just check both conditions in the one if-statement and then change the message to mention "... positive integer".
-
While
alert()is convenient to use, it is not a user-friendly way to notify the user an error.
No change needed.
There was a problem hiding this comment.
yes i made changes but it is still showing to do list I have replaced the orignial file and pushed it through, but I think I have made both under sprint 3 so thats why its showing like this. any idea how can i sort it out usually when I replace the original file from github it goes away but this time it didnt. May be becuase they both in sprint 3. Are you able to help otherwise its failing the checks
This comment has been minimized.
This comment has been minimized.
1 similar comment
This comment has been minimized.
This comment has been minimized.
|
In your most recent commit, you introduced a modified file in the todo-list folder. Could your revert the change to that file to keep this PR clean? |
This comment has been minimized.
This comment has been minimized.
1 similar comment
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
|
One way to revert changes to a file is via the First, locate a commit before the file was modified. It could be the first commit you made, assuming the branch started in a clean state. Next, record the first 7 characters of the commit SHA. Suppose the file is After the file is restored, make a commit and push the changes to GitHub. |
|
You fixed the PR branch. Well done. All good now. |
Self checklist
Sprint 3 AlarmClock